package com.ejuornal.action;

import com.ejuornal.bean.vo.User_EditorChief;
import com.ejuornal.service.EditorChiefVoService;

public class EditorChiefVoAction extends BaseAction<User_EditorChief> {
	private static final long serialVersionUID = 1L;
	private String value;
	
	private EditorChiefVoService editorChiefVoService;
	
	/**
	 * 根据状态查询所有的主编扩展（vo）信息
	 * @author lwf
	 * @return
	 */
	public String findByChiefVoByStatus(){
		String url="user/findChiefByStatus?value=" + value + "&";
		if("1".equals(value))//未审核
		{   
			pages = editorChiefVoService.findChiefVoByStatus((page-1)*10, url, value);
			return SUCCESS;
		}
		else if("2".equals(value))//审核通过
		{   
			pages = editorChiefVoService.findChiefVoByStatus((page-1)*10, url, value);
			return SUCCESS;
		}
		else if("3".equals(value))//审核未通过
		{   
			pages = editorChiefVoService.findChiefVoByStatus((page-1)*10, url, value);
			return SUCCESS;
		}
		else  //异常
		{  
			return ERROR;
		}
		
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public EditorChiefVoService getEditorChiefVoService() {
		return editorChiefVoService;
	}

	public void setEditorChiefVoService(EditorChiefVoService editorChiefVoService) {
		this.editorChiefVoService = editorChiefVoService;
	}
	

}
